package com.fh.module_mine.ui.activity

import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.fh.lib_base.base.BaseActivity
import com.fh.lib_base.config.AppConstants
import com.fh.lib_base.route.RouteCenter
import com.fh.module_mine.BR
import com.fh.module_mine.R
import com.fh.module_mine.databinding.MineActivityAloneBinding
import com.fh.module_mine.viewmodel.AloneViewModel

@Route(path = AppConstants.Router.Mine.MINE_ALONE)
class AloneActivity: BaseActivity<MineActivityAloneBinding,AloneViewModel>(){

    override fun initContentView(): Int {
        return R.layout.mine_activity_alone
    }

    override fun initVariableId(): Int {
        return BR.viewModel
    }

    override fun initData() {
        super.initData()
        viewModel.apply {
            btnBackVisibility.set(false)
            toolbarRightText.set("设置")
            tvTitle.set("测试")
        }
        binding.mainAloneTest.setOnClickListener {
//            RouteCenter.navigate(AppConstants.Router.Mine.MINE_TEST)
            ARouter.getInstance().build("/test/activity").navigation();
        }
    }

}